<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPages/Core.Master"
    CodeBehind="InstallmentWarningList.aspx.cs" Inherits="Pap.Web.Modules.Loan.Views.InstallmentWarningList"
    meta:resourcekey="PageResource1" %>

<%@ Register Src="../../Shared/Views/InsertAttchments.ascx" TagName="InsertAttchments"
    TagPrefix="Attachment" %>
<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <ext:Store runat="server" ID="storeWarnings">
        <Reader>
            <ext:JsonReader ReaderID="LoanIntstallmentWarningID">
                <Fields>
                    <ext:RecordField Name="LoanIntstallmentWarningID" />
                    <ext:RecordField Name="LoanNumber" />
                    <ext:RecordField Name="CustomerName" />
                    <ext:RecordField Name="LoanDate" />
                    <ext:RecordField Name="WarningDate" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:FitLayout runat="server">
        <ext:Panel runat="server" AutoScroll="true" Title="<%$Resources:TitleWarnings %>">
            <Body>
                <ext:GridPanel runat="server" ID="gridWarnings" StoreID="storeWarnings" AutoHeight="true"
                    Collapsed="false">
                    <ColumnModel>
                        <Columns>
                            <ext:Column ColumnID="LoanNumber" Groupable="true" DataIndex="LoanNumber" Header="<%$Resources:HeaderLoanNumber %>" />
                            <ext:Column DataIndex="CustomerName" Header="<%$Resources:HeaderCustomerName %>"
                                Groupable="false" />
                            <ext:Column DataIndex="LoanDate" Header="<%$Resources:HeaderLoanDate %>" Groupable="false">
                                <Renderer Fn="Ext.util.Format.dateRenderer('d/m/Y')" />
                            </ext:Column>
                            <ext:Column DataIndex="WarningDate" Header="<%$Resources:HeaderWarningDate %>" Groupable="false">
                                <Renderer Fn="Ext.util.Format.dateRenderer('d/m/Y')" />
                            </ext:Column>
                        </Columns>
                    </ColumnModel>
                    <SelectionModel>
                        <ext:RowSelectionModel SingleSelect="true" runat="server">
                            <AjaxEvents>
                                <SelectionChange OnEvent="gridWarning_SelectedChanged">
                                </SelectionChange>
                            </AjaxEvents>
                        </ext:RowSelectionModel>
                    </SelectionModel>
                    <View>
                        <ext:GroupingView runat="server" AutoFill="true" EnableGrouping="true" StartCollapsed="true"
                            EnableRowBody="true" HideGroupedColumn="true">
                        </ext:GroupingView>
                    </View>
                </ext:GridPanel>
                <ext:Panel runat="server">
                    <Body>
                        <Attachment:InsertAttchments ID="InsertAttchmentsCtrl" runat="server" ViewMode="Edit" />
                    </Body>
                    <BottomBar>
                        <ext:StatusBar ID="StatusBar1" runat="server">
                            <Items>
                                <ext:Button runat="server" ID="btnSaveAttachment" Text=" SaveAttachment " Icon="Disk"
                                    meta:resourcekey="btnSaveAttachmentResourcee">
                                    <AjaxEvents>
                                        <Click OnEvent="BtnSaveAttachment">
                                            <EventMask ShowMask="true" />
                                        </Click>
                                    </AjaxEvents>
                                </ext:Button>
                            </Items>
                        </ext:StatusBar>
                    </BottomBar>
                </ext:Panel>
            </Body>
        </ext:Panel>
    </ext:FitLayout>
</asp:Content>
